clc;clear all;
file=dir('data');
for ii=3:length(file)
    load(strcat('data\\',file(ii).name));
end
% for kk=1:length(tx_imag)
%     tx_imag(kk,1)=todec(tx_imag(kk,1));
%     tx_real(kk,1)=todec(tx_real(kk,1));
% end
% for kk=1:length(zc_imag)
%     zc_imag(kk,1)=todec(zc_imag(kk,1));
%     zc_real(kk,1)=todec(zc_real(kk,1));
% end

zc=complex(zc_real,zc_imag);
tx=complex(tx_real,tx_imag);
[x,l1]=xcorr([zeros(200,1);zc],zc);
[y,l2]=xcorr([tx],zc);
figure;
subplot(211);plot(l1,abs(x));
subplot(212);plot(l2,abs(y));

